/**
 *====================================================
 * 文件名称: SignatureEntity.java
 * 修订记录：
 * No    日期				作者(操作:具体内容)
 * 1.    2015年9月23日			chenxy(创建:创建文件)
 *====================================================
 * 类描述：(说明未实现或其它不应生成javadoc的内容)
 */
package com.yuexunit.finance.project.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.yuexunit.finance.member.entity.lexicon.AuditStateEnum;
import com.yuexunit.finance.seal.entity.lexion.SealTypeEnum;

/**
 * @ClassName: SignatureEntity
 * @Description: TODO(电子签章实体类)
 * @author chenxy
 * @date 2015年9月23日 下午5:42:57
 */
@Entity
@Table(name = "FIN_SIGNATURE")
public class SignatureEntity {

	/** 企业信息ID */
	@Id
	@GeneratedValue
	@Column(name = "ID")
	private Long Id;
	
	@Column(name = "ENTERPRISE_ID")
	private Long enterpriseId;
	
	/** 企业名称 */
	@Column(name = "ENTERPRISE_NAME")
	private String enterpriseName;
	
	/** e签宝账户ID */
	@Column(name = "EACCOUNT")
	private String eaccount;

	/** 备用字段 */
	@Column(name = "SPARE")
	private String spare;

	/** 创建时间 */
	@Column(name = "CREATE_DT")
	private Date createDateTime;
	
	/** 提交时间 */
	@Column(name = "SUBMIT_DT")
	private Date submitDateTime;
	
	/** 审批时间 */
	@Column(name = "AUDIT_DT")
	private Date auditDateTime;
	
	/** 电子印章数据 */
	@Column(name = "SEAL_DATA")
	private String sealData;
	
	/** 法人代表 */
	@Column(name = "LEGAL_PERSON")
	private String legalPerson;

	/** 签章类型 2:企业/3:财务/4:其他 */
	@Column(name = "SEAL_TYPE")
	private SealTypeEnum sealType;
	
	/** 是否启用 */
	@Column(name = "ENABLED")
	private Boolean enabled;
	
	/** 横向文 */
	@Column(name = "HTEXT")
	private String hText;
	
	/** 下弦文 */
	@Column(name = "QTEXT")
	private String qText;
	
	/** 审核状态 */
	@Column(name = "AUDIT_STATE")
	private AuditStateEnum auditState;
	
	/** 模板类型 : 1:模板印章/2:图片印章*/
	@Column(name = "MODEL_TYPE")
	private Integer modelType;
	
	public AuditStateEnum getAuditState() {
		if (null == auditState) {
			return AuditStateEnum.UNKNOWN;
		}
		return auditState;
	}

	public void setAuditState(AuditStateEnum auditState) {
		this.auditState = auditState;
	}

	public String gethText() {
		return hText;
	}

	public void sethText(String hText) {
		this.hText = hText;
	}

	public String getqText() {
		return qText;
	}

	public void setqText(String qText) {
		this.qText = qText;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public SealTypeEnum getSealType() {
		if (null == sealType) {
			return SealTypeEnum.UNKNOWN;
		}
		return sealType;
	}

	public void setSealType(SealTypeEnum sealType) {
		this.sealType = sealType;
	}

	public String getSealData() {
		return sealData;
	}

	public void setSealData(String sealData) {
		this.sealData = sealData;
	}

	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	public Long getId() {
		return Id;
	}

	public void setId(Long id) {
		Id = id;
	}

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}

	public String getEaccount() {
		return eaccount;
	}

	public void setEaccount(String eaccount) {
		this.eaccount = eaccount;
	}

	public String getSpare() {
		return spare;
	}

	public void setSpare(String spare) {
		this.spare = spare;
	}

	public Date getCreateDateTime() {
		return createDateTime;
	}

	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}

	public Date getSubmitDateTime() {
		return submitDateTime;
	}

	public void setSubmitDateTime(Date submitDateTime) {
		this.submitDateTime = submitDateTime;
	}

	public Date getAuditDateTime() {
		return auditDateTime;
	}

	public void setAuditDateTime(Date auditDateTime) {
		this.auditDateTime = auditDateTime;
	}

	public Integer getModelType() {
		return modelType;
	}

	public void setModelType(Integer modelType) {
		this.modelType = modelType;
	}

	
	
	
	
}
